import Vue from 'vue'
import App from './App'
import router from './router'

/**
 * 引入element UI
 */
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/css/element-variables.scss';
Vue.use(ElementUI)

/**
 * 引入echarts
 */
import echarts from 'echarts'
Vue.prototype.$echarts = echarts

//
/**
 * 引入ES6垫片
 */
import es6Promise from "babel-polyfill";



/**
 * 引入axios
 */
import axios from 'axios';
axios.defaults.baseURL = "http://zhyuanchang.com/api/web/backend/";
//axios.defaults.baseURL = "http://shopping-backend.dev:8081/api/web/backend/";
Vue.prototype.localhost = "/api";
Vue.prototype.axios = axios;

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})

